import { setStorageToken, getStorageToken } from '@/utils/storage'
export default {
  namespaced: true,
  state: {
    token: getStorageToken(),
    userInfo: {}
  },
  getters: {
  },
  mutations: {
    setToken(state, payload) {
      state.token = payload
      // 本地存储token
      setStorageToken(payload)
    }

  }
}
